package org.dromara.system.controller;

import io.rong.messages.BaseMessage;
import io.rong.util.GsonUtil;

/**
 * 自定义融云消息类型：课程预约消息
 */
public class CourseMessage extends BaseMessage{

    private String content;        // 消息正文
    private String teacherName;    // 老师姓名
    private String teacherAvatar;  // 老师头像
    private String specificTime;   // 时间
    private String serviceDate;    // 日期

    public CourseMessage() {}

    @Override
    public String getType() {
        return "RC:CourseMsg";
    }

    public CourseMessage(String content, String teacherName, String teacherAvatar,
                         String specificTime, String serviceDate) {
        this.content = content;
        this.teacherName = teacherName;
        this.teacherAvatar = teacherAvatar;
        this.specificTime = specificTime;
        this.serviceDate = serviceDate;
    }

    public String getContent() {
        return content;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public String getTeacherAvatar() {
        return teacherAvatar;
    }


    public String getSpecificTime() {
        return specificTime;
    }

    public String getServiceDate() {
        return serviceDate;
    }

    @Override
    public String toString() {
        return GsonUtil.toJson(this, CourseMessage.class);
    }
}
